<?php
/**
 * Created by PhpStorm.
 * User: zhangxilu
 * Date: 2017/12/21
 * Time: 下午9:18
 */

namespace common\logic;


use common\models\BaseDecorationTypeModel;
use yii\db\ActiveQuery;

class DecorationTypeLogic extends Logic
{

    /**
     * @return ActiveQuery
     */
    protected function _getActiveQuery()
    {
       return BaseDecorationTypeModel::find();
    }

    /**
     * @param $id
     *
     * @return array|null|BaseDecorationTypeModel
     */
    public function get($id){
        return $this->_get(['id' => $id]);
    }

    public function getAll(){
        return $this->_all();
    }
}